package com.atguigu.day14.enum01.e1;

class Gender{
    private String message;
   // static int m = 10;
    public static final Gender MAN = new Gender("男");
    public static final Gender WOMAN = new Gender("女");

    private Gender(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "Gender{" +
                "message='" + message + '\'' +
                '}';
    }
}

public class Person {
    String name = "张三";
    Gender gender = Gender.WOMAN;
  //  char gender = 'Z';
   // Gender man = new Gender("ADC");
}
